﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            List<int> list;
            list=new List<int>();
            Random r = new Random();
            Stopwatch sw = new Stopwatch();
            sw.Restart();
            for (int i = 0; i < 1000000; i++)
            {
               list.Add(r.Next(0, 9));
            }
            sw.Stop();
            Console.WriteLine("Время создания:");
            Console.WriteLine(sw.ElapsedMilliseconds);
            Console.ReadLine();
        }

        class CollectionTester
        {
            public string[] StringArray;
        }
    }
}
